package android.slc.appbase.ui

import android.slc.box.core.ui.BaseStageViewModel
import android.slc.appbase.vm.GlobalDataVm

/**
 * @author slc
 * @date 2022/03/21 下午 3:35
 */
open class AppViewModel : BaseStageViewModel() {
    val windowVmBox = GlobalDataVm.getInstance().windowVmBox

    protected fun finishAndRefreshList() {
        intentScope.notifyRefreshList()
        finish()
    }

    protected fun finishAndResultView(payload: Any) {
        intentScope.notifyResultView(payload)
        finish()
    }

}
